<?php

namespace app\admin\controller;

use think\App;
use think\Controller;
use think\Request;

class Base extends Controller
{
    protected $admin;

    protected $persimmon;

    public function __construct(App $app = null,Request $request)
    {
        parent::__construct($app);

        // 获取当前管理员
        if ($request->AdminAuth) {
            $this->admin = $request->AdminAuth;
            $this->persimmon = $request->AdminPersimmon;
        }
    }
}
